/*
 * @Author       : ljkt
 * @Version      : 1.0
 * @Date         : 2021-10-05 18:00:43
 * @LastEditors: ljkt
 * @LastEditTime: 2024-12-18 18:04:33
 * @Description  :
 */

#ifndef _Dev_BuzXy_H_
#define _Dev_BuzXy_H_

#define DEV_SET_BUZ_XY_CMD(cmd) (gDev_BuzXy.UpFlag = 1, gDev_BuzXy.Cmd = cmd)
enum
{
    e_INDEX_XY_BUZ_NO_TAB = 0,
    e_INDEX_XY_BUZ_POWER_ON_TAB,
    e_INDEX_XY_BUZ_POWER_OFF_TAB,
    e_INDEX_XY_BUZ_TONG_YONG_TAB,
    e_INDEX_XY_BUZ_CUO_WU_TAB,
    e_INDEX_XY_BUZ_QI_DONG_TAB,
    e_INDEX_XY_BUZ_ZAN_TING_TAB,
    e_INDEX_XY_BUZ_JIE_SHU_TAB,
    e_INDEX_XY_BUZ_GONG_NENG_KAI_TAB,
    e_INDEX_XY_BUZ_GONG_NENG_GUAN_TAB,
    e_INDEX_XY_BUZ_BAO_CUO_TAB,
    e_INDEX_XY_BUZ_BAO_CUO_TAB,
    e_INDEX_XY_BUZ_ZI_DING_YI_TAB,
    e_INDEX_XY_BUZ_TONG_ZI_JIE_TAB,
    e_INDEX_XY_BUZ_YANG_MAO_TAB,
    e_INDEX_XY_BUZ_KONG_QI_XI_TAB,
    e_INDEX_XY_BUZ_YU_RONG_TAB,
    e_INDEX_XY_BUZ_CHU_JUN_MAN_TAB,
    e_INDEX_XY_BUZ_BIAO_ZHUN_TAB,
    e_INDEX_XY_BUZ_JIA_FANG_TAB,
    e_INDEX_XY_BUZ_TE_ZI_XI_TAB,
    e_INDEX_XY_BUZ_KUAI_XI_TAB,
    e_INDEX_XY_BUZ_DAN_TUO_XI_TAB,
    e_INDEX_XY_BUZ_PIAO_TUO_TAB,
    e_INDEX_XY_BUZ_MAX,
};
typedef struct
{
    unsigned short F_Pwm;
    unsigned short Duty_Pwm;
    unsigned short Time;
    unsigned short Power;

} s_1yiejie_t;
typedef struct
{
    unsigned char Cmd;
    unsigned char UpFlag;
} s_dev_buzxy_t;
extern s_dev_buzxy_t gDev_BuzXy;
void Dev_BuzXy_Init(void);
void Drv_BuzXy_Scan(void);

#endif
